package org.road0329.tools.proto_parse_tool.ems.dataobject;

import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 常德NB-IoT物联网水表协议 上报数据项
 */
public class CdIotUpData {
    private BigDecimal cumulant; //累计量
    private short valveStatus;// 阀门状态
    private short batteryStatus; //电池状态
    private byte rssi; //信号强度
    private float voltage; //电池电压
    private float temperature; //温度
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date dataTime;// 数据时间
    private byte[] position; //位置
    private String version; //版本
    private String iccid;
    private float flow; //流量

    public BigDecimal getCumulant() {
        return cumulant;
    }

    public void setCumulant(BigDecimal cumulant) {
        this.cumulant = cumulant;
    }

    public short getValveStatus() {
        return valveStatus;
    }

    public void setValveStatus(short valveStatus) {
        this.valveStatus = valveStatus;
    }

    public short getBatteryStatus() {
        return batteryStatus;
    }

    public void setBatteryStatus(short batteryStatus) {
        this.batteryStatus = batteryStatus;
    }

    public byte getRssi() {
        return rssi;
    }

    public void setRssi(byte rssi) {
        this.rssi = rssi;
    }

    public float getVoltage() {
        return voltage;
    }

    public void setVoltage(float voltage) {
        this.voltage = voltage;
    }

    public float getTemperature() {
        return temperature;
    }

    public void setTemperature(float temperature) {
        this.temperature = temperature;
    }

    public Date getDataTime() {
        return dataTime;
    }

    public void setDataTime(Date dataTime) {
        this.dataTime = dataTime;
    }

    public byte[] getPosition() {
        return position;
    }

    public void setPosition(byte[] position) {
        this.position = position;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getIccid() {
        return iccid;
    }

    public void setIccid(String iccid) {
        this.iccid = iccid;
    }

    public float getFlow() {
        return flow;
    }

    public void setFlow(float flow) {
        this.flow = flow;
    }
}
